<?php


namespace App\Validate\Api\V1;

use App\Validate\BaseValidate;


class OrderValidate extends BaseValidate
{
    public function orderRequire()
    {
        $this->validate->addColumn('project_id')->notEmpty('project_id 不能为空');
    }


    public function orderSubmit()
    {
        $this->validate->addColumn('project_id')->notEmpty('project_id 不能为空');
        $this->validate->addColumn('client_name')->notEmpty('客户名称 不能为空');
        $this->validate->addColumn('client_address')->notEmpty('客户地址 不能为空');
        $this->validate->addColumn('client_realname')->notEmpty('联系人姓名 不能为空');
        $this->validate->addColumn('client_mobile')->notEmpty('联系人电话 不能为空')->length(11, '手机位数不正确');
    }

    public function orderDetail()
    {
        $this->validate->addColumn('order_id')->notEmpty('order_id 不能为空');
    }


}
